package com.silvtar.sync.ui;

import java.awt.BorderLayout;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JSplitPane;

import com.silvtar.io.StdOut;
import com.silvtar.sync.controller.SilverySyncInit;

public class MainFrame3 extends JFrame {

    private JPanel  contentPane;

    SilverySyncInit ssInit;

    MainPanel       mainPanel;

    /**
     * Create the frame.
     */
    public MainFrame3(SilverySyncInit ssInit) {
        this.ssInit = ssInit;

        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        setBounds(100, 100, 820, 433);
        setResizable(false);
        contentPane = new JPanel();
        setContentPane(contentPane);

        JSplitPane splitPane = new JSplitPane();
        contentPane.add(splitPane, BorderLayout.CENTER);

        mainPanel = new MainPanel(ssInit);
        splitPane.setLeftComponent(mainPanel);
        splitPane.setRightComponent(StdOut.getTerm());
        splitPane.resetToPreferredSizes();
        splitPane.setDividerLocation(320);
        //splitPane.setOrientation(JSplitPane.VERTICAL_SPLIT);
        splitPane.setContinuousLayout(true);

    }

}
